import react from 'react'
import './header.min.css'
import {NavLink,Outlet} from 'react-router-dom'

export default class Blackheader extends react.Component {
    constructor(props) {
        super(props)
        this.state = {

        }
    }
    componentDidMount(){
        // var name = JSON.parse(localStorage.userInfor).account
        // console.log(JSON.parse(localStorage.userInfor));
    }

    outLogin(){
        // localStorage.clear('userInfor')
    }
    render() {
        
        return (
            <header>
                <div className="container">
                    <ul>
                        <NavLink to="/login">请先登录</NavLink>
                        <li onClick={this.outLogin.bind(this)}>退出登录</li>
                        <li>免费注册</li>
                        <li>我的订单</li>
                        <li>会员中心</li>
                        <li>帮助中信</li>
                        <li>关于我们</li>
                        <li>手机版</li>
                    </ul>
                </div>
            </header>
        )
    }
}